<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h2>请勾选你喜欢的水果</h2>
    <ul>
      <li>
        <label>
          <input type="checkbox" v-model="likes" value="Apple">
          Apple
        </label>
      </li>
      <li>
        <label>
          <input type="checkbox" v-model="likes" value="Banana">
          Banana
        </label>
      </li>
      <li>
        <label>
          <input type="checkbox" v-model="likes" value="Orange">
          Orange
        </label>
      </li>
    </ul>


  </div>

  <script src="./js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        likes: [], // 喜欢的水果集合
      },
    })
  </script>
</body>
</html>